home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1997 February / Software of the Month Club 1997 February.iso / pc / dos / sri / child / fishkeys / install.bat < prev    next >
Encoding:
DOS Batch File  |  1996-03-24  |  1.3 KB  |  51 lines

  1. @echo off
  2. echo.
  3. echo -- Installation for Fish Keys 3.0 --
  4. echo.
  5. set instdir=c:\fishkeys
  6. set batdir=c:
  7. if "%1"=="" goto gotdirs
  8. set instdir=%1
  9. if "%2"=="" goto gotdirs
  10. set batdir=%2
  11. :gotdirs
  12. echo Fish Keys will be installed in the directory %instdir%
  13. echo and the batch file to run Fish Keys will be put in %batdir%
  14. choice Is this OK
  15. if errorlevel == 2 goto bailout
  16. echo.
  17. echo installing...
  18. echo.
  19. echo Creating %instdir%
  20. mkdir %instdir%
  21. echo.
  22. echo Copying files.
  23. xcopy *.* %instdir%
  24. del %instdir%\install.bat
  25. echo.
  26. echo Creating batch file.
  27. echo @echo off > %batdir%\fishkeys.bat
  28. echo if not exist %instdir%\fishkeys.exe goto notfound >> %batdir%\fishkeys.bat
  29. echo cd %instdir% >> %batdir%\fishkeys.bat
  30. echo fishkeys.exe >> %batdir%\fishkeys.bat
  31. echo cd \ >> %batdir%\fishkeys.bat
  32. echo goto end >> %batdir%\fishkeys.bat
  33. echo :notfound >> %batdir%\fishkeys.bat
  34. echo echo. >> %batdir%\fishkeys.bat
  35. echo echo Can not find Fish Keys 3.0 >> %batdir%\fishkeys.bat
  36. echo echo. >> %batdir%\fishkeys.bat
  37. echo :end >> %batdir%\fishkeys.bat
  38. echo.
  39. echo Installation complete.
  40. goto end
  41. :bailout
  42. echo.
  43. echo To specify the installation directory and the batch file directory, type:
  44. echo install install_dir batch_file_dir (eg: install c:\games\fishkeys c:\dos) 
  45. echo The batch file directory MUST already exist.
  46. :end
  47. set instdir=
  48. set batdir=
  49. echo.
  50.  
  51.